import {showInfo} from "@/util/uniUtils";
import {globalConfig} from "@/config/globalConfig";
export const shareMixins = {
    data() {
        return {
            //设置默认的分享参数
            share: {
                title: globalConfig.shareTitle,
                path: '/pages/index/index',
                // imageUrl:'/static/cdtu.png',
            }
        }
    },
    onShareAppMessage(res) {
        return {
            title: this.share.title,
            path: this.share.path,
            // imageUrl: this.share.imageUrl,
            success(res) {
               showInfo("分享成功")
            },
            fail(res) {
                showInfo("分享失败")
            }
        }
    },
    onShareTimeline() {},
}
